class Stack(object):    
    def __init__(self, object = []):
        self.stack = []
        if object:
            self.stack = object
    def push(self,object):
        self.stack.append(object)
    def pop(self):
        return self.stack.pop()
    @property
    def length(self):
        return len(self.stack)
    @property
    def top(self):
        if self.length == 0:
            print "Stack is empty"
        else:
            return self.stack[-1]
    
